package com.yyl.controller;

import org.springframework.web.bind.annotation.*;

import java.text.SimpleDateFormat;
import java.util.Date;

@RestController
@RequestMapping("test")// @Controller
public class TestController {
    @GetMapping
    public String aaa(){
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String format = sdf.format(date);
        return format;
    }
    @PostMapping
    public String bbb(){
        return "bbb";
    }
    @PutMapping
    public String ccc(){
        return "ccc";
    }
}
